<!-- HTML header for doxygen 1.8.18-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=9" />
    <meta name="generator" content="Doxygen 1.8.18" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>Limit Order Book: LOB::Order Struct Reference</title>
    <link href="tabs.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="jquery.js"></script>
    <script type="text/javascript" src="dynsections.js"></script>
    <link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
    <script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
</script>
<script type="text/javascript" async="async" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
    <link href="html_stylesheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div id="top">
        <!-- do not remove this div, it is closed by doxygen! -->
        <div id="titlearea">
            <table cellspacing="0" cellpadding="0">
                <tbody>
                    <tr style="height: 56px;">
                        <td id="projectalign" style="padding-left: 0.5em;">
                            <div id="projectname">Limit Order Book
                                &#160;<span id="projectnumber">2.0.0</span>
                            </div>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespace_l_o_b.html">LOB</a></li><li class="navelem"><a class="el" href="struct_l_o_b_1_1_order.html">Order</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="struct_l_o_b_1_1_order-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">LOB::Order Struct Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A single order in the <a class="el" href="class_l_o_b_1_1_limit_order_book.html" title="An order book for managing Limit / Order objects in a continuous double auction.">LimitOrderBook</a>.  
 <a href="struct_l_o_b_1_1_order.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="structures_8hpp_source.html">structures.hpp</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for LOB::Order:</div>
<div class="dyncontent">
 <div class="center">
  <img src="struct_l_o_b_1_1_order.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a6731de6080c369204cb6c3ca7ee13cbf"><td class="memItemLeft" align="right" valign="top"><a id="a6731de6080c369204cb6c3ca7ee13cbf"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_l_o_b_1_1_order.html#a6731de6080c369204cb6c3ca7ee13cbf">Order</a> ()</td></tr>
<tr class="memdesc:a6731de6080c369204cb6c3ca7ee13cbf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize a new order data. <br /></td></tr>
<tr class="separator:a6731de6080c369204cb6c3ca7ee13cbf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae7106787df2001416575765eaa8236d0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_l_o_b_1_1_order.html#ae7106787df2001416575765eaa8236d0">Order</a> (<a class="el" href="namespace_l_o_b.html#a482ac950a9cb23fdb93c66d6117a8f74">UID</a> uid_, <a class="el" href="namespace_l_o_b.html#ac0757a974349160aa795b45451948db6">Side</a> side_, <a class="el" href="namespace_l_o_b.html#a1d5eee8595d35bc6f2b8372e44cd8dd7">Quantity</a> quantity_, <a class="el" href="namespace_l_o_b.html#a0170482547b909e8a53b5ae42d18e23a">Price</a> price_)</td></tr>
<tr class="memdesc:ae7106787df2001416575765eaa8236d0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize a new order data.  <a href="struct_l_o_b_1_1_order.html#ae7106787df2001416575765eaa8236d0">More...</a><br /></td></tr>
<tr class="separator:ae7106787df2001416575765eaa8236d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a7287e54cc8ad117cddbeb7b843b29f1b"><td class="memItemLeft" align="right" valign="top"><a id="a7287e54cc8ad117cddbeb7b843b29f1b"></a>
const <a class="el" href="namespace_l_o_b.html#a482ac950a9cb23fdb93c66d6117a8f74">UID</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_l_o_b_1_1_order.html#a7287e54cc8ad117cddbeb7b843b29f1b">uid</a> = 0</td></tr>
<tr class="memdesc:a7287e54cc8ad117cddbeb7b843b29f1b"><td class="mdescLeft">&#160;</td><td class="mdescRight">the day-unique ID for this particular order <br /></td></tr>
<tr class="separator:a7287e54cc8ad117cddbeb7b843b29f1b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a958f5a54a613fb012214b71332add261"><td class="memItemLeft" align="right" valign="top"><a id="a958f5a54a613fb012214b71332add261"></a>
const <a class="el" href="namespace_l_o_b.html#ac0757a974349160aa795b45451948db6">Side</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_l_o_b_1_1_order.html#a958f5a54a613fb012214b71332add261">side</a> = Side::Sell</td></tr>
<tr class="memdesc:a958f5a54a613fb012214b71332add261"><td class="mdescLeft">&#160;</td><td class="mdescRight">a boolean determining whether the order id a buy (true) or sell (false) <br /></td></tr>
<tr class="separator:a958f5a54a613fb012214b71332add261"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a306f045463a61d710f29d59824b4fa9d"><td class="memItemLeft" align="right" valign="top"><a id="a306f045463a61d710f29d59824b4fa9d"></a>
<a class="el" href="namespace_l_o_b.html#a1d5eee8595d35bc6f2b8372e44cd8dd7">Quantity</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_l_o_b_1_1_order.html#a306f045463a61d710f29d59824b4fa9d">quantity</a> = 0</td></tr>
<tr class="memdesc:a306f045463a61d710f29d59824b4fa9d"><td class="mdescLeft">&#160;</td><td class="mdescRight">the number of shares in the order <br /></td></tr>
<tr class="separator:a306f045463a61d710f29d59824b4fa9d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8e5f781012f13a6116c60bb9e8d3fa5f"><td class="memItemLeft" align="right" valign="top"><a id="a8e5f781012f13a6116c60bb9e8d3fa5f"></a>
const <a class="el" href="namespace_l_o_b.html#a0170482547b909e8a53b5ae42d18e23a">Price</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_l_o_b_1_1_order.html#a8e5f781012f13a6116c60bb9e8d3fa5f">price</a> = 0</td></tr>
<tr class="memdesc:a8e5f781012f13a6116c60bb9e8d3fa5f"><td class="mdescLeft">&#160;</td><td class="mdescRight">the limit price for the order (market price if market order) <br /></td></tr>
<tr class="separator:a8e5f781012f13a6116c60bb9e8d3fa5f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac4eb93ab36045cd0927ee4d4ea51c1a5"><td class="memItemLeft" align="right" valign="top"><a id="ac4eb93ab36045cd0927ee4d4ea51c1a5"></a>
<a class="el" href="struct_l_o_b_1_1_limit.html">Limit</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_l_o_b_1_1_order.html#ac4eb93ab36045cd0927ee4d4ea51c1a5">limit</a> = nullptr</td></tr>
<tr class="memdesc:ac4eb93ab36045cd0927ee4d4ea51c1a5"><td class="mdescLeft">&#160;</td><td class="mdescRight">the limit this order falls under <br /></td></tr>
<tr class="separator:ac4eb93ab36045cd0927ee4d4ea51c1a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A single order in the <a class="el" href="class_l_o_b_1_1_limit_order_book.html" title="An order book for managing Limit / Order objects in a continuous double auction.">LimitOrderBook</a>. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ae7106787df2001416575765eaa8236d0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae7106787df2001416575765eaa8236d0">&#9670;&nbsp;</a></span>Order()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">LOB::Order::Order </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespace_l_o_b.html#a482ac950a9cb23fdb93c66d6117a8f74">UID</a>&#160;</td>
          <td class="paramname"><em>uid_</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespace_l_o_b.html#ac0757a974349160aa795b45451948db6">Side</a>&#160;</td>
          <td class="paramname"><em>side_</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespace_l_o_b.html#a1d5eee8595d35bc6f2b8372e44cd8dd7">Quantity</a>&#160;</td>
          <td class="paramname"><em>quantity_</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespace_l_o_b.html#a0170482547b909e8a53b5ae42d18e23a">Price</a>&#160;</td>
          <td class="paramname"><em>price_</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Initialize a new order data. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">uid_</td><td>the unique identifier for the order </td></tr>
    <tr><td class="paramname">side_</td><td>the side of the order: buy=true, sell=false </td></tr>
    <tr><td class="paramname">quantity_</td><td>the number of shares to buy or sell </td></tr>
    <tr><td class="paramname">price_</td><td>the limit/market price for the order </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>include/<a class="el" href="structures_8hpp_source.html">structures.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.18-->
<!-- start footer part -->
</body>
</html>
